<style>
    .lt-line{
        width: 30% !important;
    }
    .ly-line{
        width: 66% !important;
    }
    .layui-input-block{
        margin-left:0px
    }
</style>
<form class="layui-form layui-card" id="NewsEditor" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">

    <div class="layui-card-body padding-left-40" >
        <div class="layui-form-item relative block">
            <span class="color-green font-w7">会议室名称</span>
            <input type="text" name="name" value='{$vo.name|default=""}' required placeholder="请输入名称" class="layui-input">
        </div>
          <div class="layui-form-item relative block">
            <span class="color-green font-w7">描述</span>
             <textarea name="content" id="content"   placeholder="描述" value="" class="layui-textarea">{$vo.content|default=""}</textarea>
        </div>
    </div>
    <div class="hr-line-dashed"></div>
    {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}

    <div class="layui-form-item text-center">
        <button class="layui-btn" lay-submit lay-filter="formDemo">保存数据</button>
        <button class="layui-btn layui-btn-danger" type='button'  data-close>取消编辑</button>
    </div>
</form>
<script>form.render()</script>
<script>

    require(['ckeditor'], function () {

        // CKEDITOR.replace('content', {
        //     filebrowserBrowseUrl        : 'ckfinder/ckfinder.html',
        //     filebrowserImageBrowseUrl   : 'ckfinder/ckfinder.html?Type=Images',
        //     filebrowserFlashBrowseUrl   : 'ckfinder/ckfinder.html?Type=Flash',
        //     filebrowserUploadUrl   : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
        //     filebrowserImageUploadUrl   : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
        //     filebrowserFlashUploadUrl   : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash'
        // });

        var editor = window.createEditor('[name="content"]');
        CKFinder.setupCKEditor( editor );


    });
</script>
